package com.example.demo.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
* <p>
* ，注意po不用于页面显示
* </p>
*
* @author javalaoniu
* @since 2022-03-25
*/
@TableName("t_demo")
public class Demo extends Model<Demo> {

    /**
    * 主键
    */
    @TableId(value = "tid", type = IdType.AUTO)
    private Long tid;

    /**
    * 测试字段，登录名称
    */
    private String loginName;

    /**
    * 测试字段，个人介绍
    */
    private String profile;

    /**
    * 测试字段，类型
    */
    private Integer type;

    /**
    * 测试字段，范围
    */
    private Integer scope;

    /**
    * 测试字段，记住我，1记住，0不记住
    */
    private Boolean remember;

    /**
    * 测试字段，登出时间
    */
    private LocalDateTime logoutTime;

    /**
    * 测试字段，创建时间，必要的字段
    */
    private LocalDateTime createAt;

    /**
    * 测试字段，更新时间，必要的字段
    */
    private LocalDateTime updateAt;

    /**
    * 测试字段，创建人，必要的字段
    */
    private String createBy;

    /**
    * 测试字段，更新人，必要的字段
    */
    private String updateBy;

    /**
    * 测试字段，逻辑删除，1删除，0未删除，必要的字段
    */
    private Boolean deleteFlag;

    public Long getTid() {
        return tid;
    }
    public void setTid(Long tid) {
        this.tid = tid;
    }

    public String getLoginName() {
        return loginName;
    }
    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getProfile() {
        return profile;
    }
    public void setProfile(String profile) {
        this.profile = profile;
    }

    public Integer getType() {
        return type;
    }
    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getScope() {
        return scope;
    }
    public void setScope(Integer scope) {
        this.scope = scope;
    }

    public Boolean getRemember() {
        return remember;
    }
    public void setRemember(Boolean remember) {
        this.remember = remember;
    }

    public LocalDateTime getLogoutTime() {
        return logoutTime;
    }
    public void setLogoutTime(LocalDateTime logoutTime) {
        this.logoutTime = logoutTime;
    }

    public LocalDateTime getCreateAt() {
        return createAt;
    }
    public void setCreateAt(LocalDateTime createAt) {
        this.createAt = createAt;
    }

    public LocalDateTime getUpdateAt() {
        return updateAt;
    }
    public void setUpdateAt(LocalDateTime updateAt) {
        this.updateAt = updateAt;
    }

    public String getCreateBy() {
        return createBy;
    }
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getUpdateBy() {
        return updateBy;
    }
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Boolean getDeleteFlag() {
        return deleteFlag;
    }
    public void setDeleteFlag(Boolean deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    @Override
    protected Serializable pkVal() {
        return this.tid;
    }

    @Override
    public String toString() {
        return "Demo{" +
            "tid=" + tid +
            ", loginName=" + loginName +
            ", profile=" + profile +
            ", type=" + type +
            ", scope=" + scope +
            ", remember=" + remember +
            ", logoutTime=" + logoutTime +
            ", createAt=" + createAt +
            ", updateAt=" + updateAt +
            ", createBy=" + createBy +
            ", updateBy=" + updateBy +
            ", deleteFlag=" + deleteFlag +
            "}";
    }
}
